package com.woniu.controller.backpage;

import com.woniu.entity.Sorting;
import com.woniu.service.backpage.IDepotService;
import com.woniu.service.backpage.IGoodsService;
import com.woniu.service.backpage.ISortingService;
import com.woniu.service.homePage.ISortingAppService;
import com.woniu.util.RequestParams;
import com.woniu.util.ResData;
import org.bouncycastle.jcajce.provider.symmetric.IDEA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分拣表controller层
 * @author 任楷锐
 * @data 2023/3/9 12:14
 */
@RestController
@RequestMapping("/sorting")
public class SortingController {
    @Autowired
    private ISortingService sortingService;

    @Autowired
    private IDepotService depotService;


    //查询分拣监控信息
    @RequestMapping("/getAllSorting")
    public ResData<?> getAllSorting(@RequestBody RequestParams<Sorting> requestParams){
        ResData<?> allSorting = sortingService.getAllSorting(requestParams);
        return allSorting;
    }

    //查询所有区域信息
    @RequestMapping("/getAllRegion")
    public ResData<?> getAllRegion(){
        ResData<?> allRegion = depotService.getAllRegion();
        return allRegion;
    }
 }
